<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: sock::base::Exception Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesock.html">sock</a></li><li class="navelem"><a class="el" href="namespacesock_1_1base.html">base</a></li><li class="navelem"><a class="el" href="classsock_1_1base_1_1_exception.html">Exception</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsock_1_1base_1_1_exception-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">sock::base::Exception Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>异常类  
 <a href="classsock_1_1base_1_1_exception.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="exception_8h_source.html">exception.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sock::base::Exception:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsock_1_1base_1_1_exception.png" usemap="#sock::base::Exception_map" alt=""/>
  <map id="sock::base::Exception_map" name="sock::base::Exception_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a381ac0f784ffa0611e5638efe2f69497"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#a381ac0f784ffa0611e5638efe2f69497">Exception</a> (void)</td></tr>
<tr class="memdesc:a381ac0f784ffa0611e5638efe2f69497"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="#a381ac0f784ffa0611e5638efe2f69497">More...</a><br /></td></tr>
<tr class="separator:a381ac0f784ffa0611e5638efe2f69497"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac96c45c4e7e820e77b2751f7c129f787"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#ac96c45c4e7e820e77b2751f7c129f787">Exception</a> (int <a class="el" href="classsock_1_1base_1_1_exception.html#ad54a96e64930816281ef5322c2ea7515">code</a>)</td></tr>
<tr class="memdesc:ac96c45c4e7e820e77b2751f7c129f787"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="#ac96c45c4e7e820e77b2751f7c129f787">More...</a><br /></td></tr>
<tr class="separator:ac96c45c4e7e820e77b2751f7c129f787"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53addde8409112cc7ac95086a7ae4999"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#a53addde8409112cc7ac95086a7ae4999">Exception</a> (const char *errmsg)</td></tr>
<tr class="memdesc:a53addde8409112cc7ac95086a7ae4999"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="#a53addde8409112cc7ac95086a7ae4999">More...</a><br /></td></tr>
<tr class="separator:a53addde8409112cc7ac95086a7ae4999"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a295d19c4871c116d5ecee25f77a38e95"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#a295d19c4871c116d5ecee25f77a38e95">Exception</a> (int <a class="el" href="classsock_1_1base_1_1_exception.html#ad54a96e64930816281ef5322c2ea7515">code</a>, const char *errmsg)</td></tr>
<tr class="memdesc:a295d19c4871c116d5ecee25f77a38e95"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="#a295d19c4871c116d5ecee25f77a38e95">More...</a><br /></td></tr>
<tr class="separator:a295d19c4871c116d5ecee25f77a38e95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeb97c421adf460c70903ec07b12fcdc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#afeb97c421adf460c70903ec07b12fcdc">Exception</a> (const <a class="el" href="classsock_1_1base_1_1_exception.html">Exception</a> &amp;exception)</td></tr>
<tr class="memdesc:afeb97c421adf460c70903ec07b12fcdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <a href="#afeb97c421adf460c70903ec07b12fcdc">More...</a><br /></td></tr>
<tr class="separator:afeb97c421adf460c70903ec07b12fcdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7eefb5a6efa0a981393a29a299f387f"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#aa7eefb5a6efa0a981393a29a299f387f">~Exception</a> (void)</td></tr>
<tr class="memdesc:aa7eefb5a6efa0a981393a29a299f387f"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数  <a href="#aa7eefb5a6efa0a981393a29a299f387f">More...</a><br /></td></tr>
<tr class="separator:aa7eefb5a6efa0a981393a29a299f387f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad54a96e64930816281ef5322c2ea7515"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1base_1_1_exception.html#ad54a96e64930816281ef5322c2ea7515">code</a> (void) const </td></tr>
<tr class="memdesc:ad54a96e64930816281ef5322c2ea7515"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取错误码  <a href="#ad54a96e64930816281ef5322c2ea7515">More...</a><br /></td></tr>
<tr class="separator:ad54a96e64930816281ef5322c2ea7515"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>异常类 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a381ac0f784ffa0611e5638efe2f69497"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Exception::Exception </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数 </p>

</div>
</div>
<a class="anchor" id="ac96c45c4e7e820e77b2751f7c129f787"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Exception::Exception </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>错误码 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a53addde8409112cc7ac95086a7ae4999"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Exception::Exception </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>errmsg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">errmsg</td><td>错误消息 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a295d19c4871c116d5ecee25f77a38e95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Exception::Exception </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>errmsg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>错误码 </td></tr>
    <tr><td class="paramname">errmsg</td><td>错误消息 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afeb97c421adf460c70903ec07b12fcdc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Exception::Exception </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsock_1_1base_1_1_exception.html">Exception</a> &amp;&#160;</td>
          <td class="paramname"><em>exception</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">exception</td><td>异常对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa7eefb5a6efa0a981393a29a299f387f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Exception::~Exception </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>析构函数 </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ad54a96e64930816281ef5322c2ea7515"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int sock::base::Exception::code </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取错误码 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/git/sock/sock/base/<a class="el" href="exception_8h_source.html">exception.h</a></li>
<li>E:/git/sock/src/base/<a class="el" href="exception_8cc.html">exception.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
